<%@ page contentType="text/xml; charset=utf-8" import="java.util.List,com.running.crm.model.Mms,com.running.util.StringUtils"%><%
out.print("<?xml version='1.0' encoding='utf-8' ?>");
out.print("<Root>");
List<Mms> mms = (List<Mms>)request.getAttribute("dataset");
if(mms.size()==0){
    out.println("<R>");
    out.println("<mmsSid>0</mmsSid>");
    out.println("<mmsSubject>没有配置彩信</mmsSubject>");
    out.println("</R>");
}else{
for (Mms m : mms) {
    out.println("<R>");
    out.println("<mmsSid>"+m.getMmsSid()+"</mmsSid>");
    out.println("<mmsSubject>"+StringUtils.xmlFormat(m.getMmsSubject())+"</mmsSubject>");
    out.println("</R>");
   }
}
out.print("</Root>");
%>